<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>食物评论</title>
<script type="text/javascript" src="../../js/jquery-1.10.2.js"></script>
<script type="text/javascript">
	$(function(){
				var data={'mealId':1};
				var url="../../commentAction/selectCommentByMeal";
				$.post(url,data,function(mess){
					var str="<table><tr><td>用户名字</td><td>评论内容</td><td>食物名字</td></tr>";
					for(var i=0;i<mess.length;i++){
						str+="<tr><td>"+mess[i].usName+"</td>"+
								  "<td>"+mess[i].coContent+"</td>"+
								  "<td>"+mess[i].foName+"</td>"+
							"</tr>";
					}
					str+="</table>"
					$("#mess").html(str)
				},"json")
			})
</script>
<style type="text/css">
	body{
		width:1000px;
		margin:0px auto;
	}
	#mess table tr td{
		width:250px;
		font:bold 20px '宋体';
		}
</style>
</head>
<body>
	<div id="mess">
	</div>
</body>
</html>